import request from '@/utils/request.js';

// 获取列表
export const cateApi = (params) => {
    return request({
        url: '/goods/catelist',
        method: 'get',
        params
    })
}

// 添加
export const addcateApi = (data) => {
    return request({
        url: '/goods/addcate',
        method: 'post',
        data
    })
}

// 删除
export const delcateApi = (params) => {
    return request({
        url: '/goods/delcate',
        method: 'get',
        params
    })
}

// 修改
export const editcateApi = (data) => {
    return request({
        url: '/goods/editcate',
        method: 'post',
        data
    })
}

// 获取
export const goriescateApi = (params) => {
    return request({
        url: '/goods/categories',
        method: 'get',
        params
    })
}

export const addApi = (data) => {
    return request({
        url: '/goods/add',
        method: 'post',
        data
    })
}


export const listApi = (params) => {
    return request({
        url: '/goods/list',
        method: 'get',
        params
    })
}



export const delApi = (params) => {
    return request({
        url: '/goods/del',
        method: 'get',
        params
    })
}